{# The assistant's voice, in the one modal: the voice profiles, each with a preview; switch, make one from the active, or edit one. ``view`` picks the piece: the composer's chip, the list, or one voice's form. Previews play through voice.js's Listen handler ([data-speak]). #} {% from "components/macros/icons.html" import icon %} {% from "components/macros/chat.html" import voice_chip, speak_button %} {% from "components/macros/form.html" import action, field, text_input, number_input, select, textarea, primary_button %} {% from "components/macros/feedback.html" import error_banner, empty_state %} {% from "components/macros/layout.html" import dialog_title %} {% if view == "chip" %} {{ voice_chip(active, path) }} {% elif view == "list" %} {% if chip_oob %}{{ voice_chip(active, path, oob=True) }}{% endif %}